PICTools Programmer's Reference
Diagonal Erode

Erodes an image diagonally. Diagonal erosion is a "morphological" operation, modifying the shape of objects in an image. It is most commonly used in image analysis operations. With some care, it can be used for some image enhancement tasks as well. The example below shows down-left erosion.  With color or gray input data, the dilate operation achieves a similar effect, by shrinking dark objects.

Morph  →  erodeld

Unlike subcode 8, erosion, this subcode does not support erosion in multiple directions at the same time. Only a single, diagonal, direction can be specified. One horizontal and one vertical direction should be set to equal non-zero values, with the effect being the combination of those two directions. The other horizontal and vertical directions should be set to zero.

The uncompressed image to be processed must reside in the Get Queue prior to REQ_EXEC. Typically, the image will be fully contained in the Get Queue, but that is not a requirement. The output image will be placed into the Put Queue during REQ_EXEC.

Padding pixels present at the end of each line may be modified by this operation if the Get and Put Queues refer to different locations in RAM. If both queues occupy the same RAM (causing the operation to be performed in-place), padding pixels will not be modified.

In addition to placing an output image into the Put Queue, this operation stores some output information into the PIC_PARM structure in the following locations.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback